import request from '@/utils/request'

// 查询采集任务信息列表
export function listDuties(query) {
    return request({
        url: '/kettle/duties/list',
        method: 'get',
        params: query
    })
}

// 查询采集任务信息详细
export function getDuties(id) {
    return request({
        url: '/kettle/duties/' + id,
        method: 'get'
    })
}

// 新增采集任务信息
export function addDuties(data) {
    return request({
        url: '/kettle/duties',
        method: 'post',
        data: data
    })
}

// 修改采集任务信息
export function updateDuties(data) {
    return request({
        url: '/kettle/duties',
        method: 'put',
        data: data
    })
}

// 删除采集任务信息
export function delDuties(id) {
    return request({
        url: '/kettle/duties/' + id,
        method: 'delete'
    })
}
